package cn.tedu.ivos.user.controller;

import cn.tedu.ivos.base.response.JsonResult;
import cn.tedu.ivos.user.pojo.dto.UserLoginParam;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@Tag(name = "用户模块")//必须与Knife4jConfig里Tag配置一致
@Slf4j
@RestController
@RequestMapping("/v1/user")
public class UserController {

    @Operation(summary = "用户登录功能")
    @ApiOperationSupport(order = 10)//数字越小显示越靠前
    @PostMapping("login")
    public JsonResult login(@Validated @RequestBody UserLoginParam userLoginParam){
        log.debug("用户登录:userLoginParam={}",userLoginParam);
        return JsonResult.ok();
    }
}